public class FormatOut1 {
    public static void main(String[] args) {
        //输出不换行
        System.out.print("hello");
        System.out.print("java");
        //内容为空，输出空行
        System.out.println();
        System.out.println("===格式化输出===");
        //格式化输出
        String n = "张北";
        int a = 21;
        double m = 3.1415926;
        System.out.printf("姓名：%S年龄：%d金额：%.3f %n", n, a, m);
        System.out.println("金额：" + m);
    }
}